package com.hu.common.util.sqlVal;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <p>
 * SQL注入验证自定义注解
 * </p>
 *
 * @author 63646
 * @since 2023/3/14
 */
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = CheckSqlInjectionValidator.class)
public @interface CheckSqlInjection {
    String message() default "SQL注入验证未通过";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
